<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="htmlId">
<head>
    <title>Coverage Report :: PointCalculator</title>
    <style type="text/css">
        @import "../../.css/coverage.css";
    </style>
</head>

<body>
<div class="header"></div>

<div class="content">
    <div class="breadCrumbs">
        [ <a href="../../index.html">all classes</a> ]
        [ <a href="../index.html">nl.tudelft.jpacman.points</a> ]
    </div>

    <h1>Coverage Summary for Class: PointCalculator (nl.tudelft.jpacman.points)</h1>

    <table class="coverageStats">
        <tr>
            <th class="name">Class</th>
        </tr>
        <tr>
            <td class="name">PointCalculator</td>
        </tr>

    </table>

    <br/>
    <br/>


    <div class="sourceCode"><i>1</i>&nbsp;package nl.tudelft.jpacman.points;
        <i>2</i>&nbsp;
        <i>3</i>&nbsp;import nl.tudelft.jpacman.board.Direction;
        <i>4</i>&nbsp;import nl.tudelft.jpacman.level.Pellet;
        <i>5</i>&nbsp;import nl.tudelft.jpacman.level.Player;
        <i>6</i>&nbsp;import nl.tudelft.jpacman.npc.Ghost;
        <i>7</i>&nbsp;
        <i>8</i>&nbsp;/**
        <i>9</i>&nbsp; * The responsibility of the point calculator is to update the points
        <i>10</i>&nbsp; * of the player when certain activities happen.
        <i>11</i>&nbsp; * Different calculation strategies can be employed,
        <i>12</i>&nbsp; * giving rise to different types of games, for example at different levels.
        <i>13</i>&nbsp; */
        <i>14</i>&nbsp;public interface PointCalculator {
        <i>15</i>&nbsp;
        <i>16</i>&nbsp; /**
        <i>17</i>&nbsp; * Method called whenever a player meets a ghost.
        <i>18</i>&nbsp; * It can be used to update the player&#39;s points accordingly.
        <i>19</i>&nbsp; *
        <i>20</i>&nbsp; * @param player
        <i>21</i>&nbsp; * The player that will die.
        <i>22</i>&nbsp; * @param ghost
        <i>23</i>&nbsp; * The ghost causing the player to die.
        <i>24</i>&nbsp; */
        <i>25</i>&nbsp; void collidedWithAGhost(Player player, Ghost ghost);
        <i>26</i>&nbsp;
        <i>27</i>&nbsp; /**
        <i>28</i>&nbsp; * Method called whenever a player consumes a pellet.
        <i>29</i>&nbsp; * It can be used to update the player&#39;s points accordingly.
        <i>30</i>&nbsp; *
        <i>31</i>&nbsp; * @param player
        <i>32</i>&nbsp; * The player consuming a pellet
        <i>33</i>&nbsp; * @param pellet
        <i>34</i>&nbsp; * The pellet consumed.
        <i>35</i>&nbsp; */
        <i>36</i>&nbsp; void consumedAPellet(Player player, Pellet pellet);
        <i>37</i>&nbsp;
        <i>38</i>&nbsp; /**
        <i>39</i>&nbsp; * Method called whevener a player makes a successful move.
        <i>40</i>&nbsp; * It can be used to update the player&#39;s points accordingly.
        <i>41</i>&nbsp; *
        <i>42</i>&nbsp; * @param player
        <i>43</i>&nbsp; * The player making a move.
        <i>44</i>&nbsp; * @param direction
        <i>45</i>&nbsp; * The direction of the move.
        <i>46</i>&nbsp; */
        <i>47</i>&nbsp; void pacmanMoved(Player player, Direction direction);
        <i>48</i>&nbsp;}
    </div>
</div>

<div class="footer">

    <div style="float:right;">generated on 2023-04-25 16:45</div>
</div>
</body>
</html>
